<?php defined('_JEXEC') or die('Restricted access'); jimport('joomla.form.form');$form = &JForm::getInstance('ncForm',dirname(__FILE__).DS."default.xml");?>
<style>
fieldset input, fieldset textarea, fieldset select, fieldset img, fieldset button{
	float:none;
}
</style>
<form action="<?php echo JRoute::_( 'index.php' );?>" method="post" name="adminForm" id="adminForm">
<div class="col100">
<fieldset class="adminform">
		<legend><?php echo JText::_( 'COM_PQCE_DTAILS' );?>:</legend>

		<table class="admintable">
		<tr>
			<td width="10" align="right" class="key">
				<label for="short_desc"><?php echo JText::_( 'COM_PQCE_SHORTDESC' );?>
				
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="short_desc" id="short_desc" size="30" maxlength="80" value="<?php echo $this->categoria->short_desc;?>" />
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="long_desc"><?php echo JText::_( 'COM_PQCE_LONGDESC' );?>
				
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="long_desc" id="long_desc" size="100" maxlength="300" value="<?php echo $this->categoria->long_desc;?>" />
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key"><?php echo JText::_( 'COM_PQCE_SMALLIMG' );?>
			</td>
			<td>
				<?php
				$tdesc=$this->categoria->short_desc_image;
				if ($tdesc!=''){
			$form->setValue('short_desc_image',null,$tdesc);}
			echo $form->getInput('short_desc_image');?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key"><?php echo JText::_( 'COM_PQCE_BIGIMG' );?>
			</td>
			<td>
				<?php 
				$tdesc=$this->categoria->long_desc_image;
				if ($tdesc!=''){
			$form->setValue('long_desc_image',null,$tdesc);}
			echo $form->getInput('long_desc_image');?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key"><?php echo JText::_( 'COM_PQCE_ACTF' );?>:
			</td>
			<td>
	<?php $chkd= 'checked="checked"'; $b=(int)$this->categoria->active;?>

	<input type="radio" name="active" id="active0" value="0" <?php if (1-$b){ echo $chkd;};?>>
	<label for="active0"><?php echo JText::_( 'COM_PQCE_NO' );?></label><br />
	<input type="radio" name="active" id="active1" value="1" <?php if ($b==1){ echo $chkd;};?>>
	<label for="active1"><?php echo JText::_( 'COM_PQCE_YES' );?></label>
			</td>
		</tr>
	</table>
	</fieldset>
</div>

<div class="clr"></div>
<input type="hidden" name="option" value="com_pqce" />
<input type="hidden" name="id" value="<?php echo $this->categoria->id; ?>" />
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>
